﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooGameplayCityCityFloorAreaDataWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Gameplay.City.CityFloorAreaData);
			Utils.BeginObjectRegister(type, L, translator, 0, 0, 9, 9);
			
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "areaId", _g_get_areaId);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "wallNode", _g_get_wallNode);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "groundNode", _g_get_groundNode);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "unlockFloorNode", _g_get_unlockFloorNode);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "unlockEffectNode", _g_get_unlockEffectNode);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "lockFloorNode", _g_get_lockFloorNode);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "containerEffectNode", _g_get_containerEffectNode);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "showWallHierarchyPaths", _g_get_showWallHierarchyPaths);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "areaId", _s_set_areaId);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "name", _s_set_name);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "wallNode", _s_set_wallNode);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "groundNode", _s_set_groundNode);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "unlockFloorNode", _s_set_unlockFloorNode);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "unlockEffectNode", _s_set_unlockEffectNode);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "lockFloorNode", _s_set_lockFloorNode);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "containerEffectNode", _s_set_containerEffectNode);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "showWallHierarchyPaths", _s_set_showWallHierarchyPaths);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
			
			
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Yoozoo.Gameplay.City.CityFloorAreaData();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.City.CityFloorAreaData constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Yoozoo.Gameplay.City.CityFloorAreaData();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.City.CityFloorAreaData constructor!");
            
        }

        
		
        
		
        
        
        
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_areaId(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.CityFloorAreaData gen_to_be_invoked = (Yoozoo.Gameplay.City.CityFloorAreaData)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.areaId);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_name(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.CityFloorAreaData gen_to_be_invoked = (Yoozoo.Gameplay.City.CityFloorAreaData)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.name);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_wallNode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.CityFloorAreaData gen_to_be_invoked = (Yoozoo.Gameplay.City.CityFloorAreaData)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.wallNode);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_groundNode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.CityFloorAreaData gen_to_be_invoked = (Yoozoo.Gameplay.City.CityFloorAreaData)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.groundNode);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_unlockFloorNode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.CityFloorAreaData gen_to_be_invoked = (Yoozoo.Gameplay.City.CityFloorAreaData)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.unlockFloorNode);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_unlockEffectNode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.CityFloorAreaData gen_to_be_invoked = (Yoozoo.Gameplay.City.CityFloorAreaData)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.unlockEffectNode);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_lockFloorNode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.CityFloorAreaData gen_to_be_invoked = (Yoozoo.Gameplay.City.CityFloorAreaData)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.lockFloorNode);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_containerEffectNode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.CityFloorAreaData gen_to_be_invoked = (Yoozoo.Gameplay.City.CityFloorAreaData)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.containerEffectNode);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_showWallHierarchyPaths(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.CityFloorAreaData gen_to_be_invoked = (Yoozoo.Gameplay.City.CityFloorAreaData)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.showWallHierarchyPaths);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_areaId(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.CityFloorAreaData gen_to_be_invoked = (Yoozoo.Gameplay.City.CityFloorAreaData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.areaId = LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_name(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.CityFloorAreaData gen_to_be_invoked = (Yoozoo.Gameplay.City.CityFloorAreaData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.name = LuaAPI.lua_tostring(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_wallNode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.CityFloorAreaData gen_to_be_invoked = (Yoozoo.Gameplay.City.CityFloorAreaData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.wallNode = (Yoozoo.Gameplay.City.CityFloorNodeData)translator.GetObject(L, 2, typeof(Yoozoo.Gameplay.City.CityFloorNodeData));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_groundNode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.CityFloorAreaData gen_to_be_invoked = (Yoozoo.Gameplay.City.CityFloorAreaData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.groundNode = (Yoozoo.Gameplay.City.CityFloorNodeData)translator.GetObject(L, 2, typeof(Yoozoo.Gameplay.City.CityFloorNodeData));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_unlockFloorNode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.CityFloorAreaData gen_to_be_invoked = (Yoozoo.Gameplay.City.CityFloorAreaData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.unlockFloorNode = (Yoozoo.Gameplay.City.CityFloorNodeData)translator.GetObject(L, 2, typeof(Yoozoo.Gameplay.City.CityFloorNodeData));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_unlockEffectNode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.CityFloorAreaData gen_to_be_invoked = (Yoozoo.Gameplay.City.CityFloorAreaData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.unlockEffectNode = (Yoozoo.Gameplay.City.CityFloorNodeData)translator.GetObject(L, 2, typeof(Yoozoo.Gameplay.City.CityFloorNodeData));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_lockFloorNode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.CityFloorAreaData gen_to_be_invoked = (Yoozoo.Gameplay.City.CityFloorAreaData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.lockFloorNode = (Yoozoo.Gameplay.City.CityFloorNodeData)translator.GetObject(L, 2, typeof(Yoozoo.Gameplay.City.CityFloorNodeData));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_containerEffectNode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.CityFloorAreaData gen_to_be_invoked = (Yoozoo.Gameplay.City.CityFloorAreaData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.containerEffectNode = (Yoozoo.Gameplay.City.CityFloorNodeData)translator.GetObject(L, 2, typeof(Yoozoo.Gameplay.City.CityFloorNodeData));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_showWallHierarchyPaths(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.CityFloorAreaData gen_to_be_invoked = (Yoozoo.Gameplay.City.CityFloorAreaData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.showWallHierarchyPaths = (System.Collections.Generic.List<string>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<string>));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
